#ifndef REGISTERDRIVEWINDOW_H
#define REGISTERDRIVEWINDOW_H

#include <Windows.h>
#include <WindowsX.h>
#include <Dbt.h>

#include "Utilities.h"
#include "Window.h"
#include "Translation.h"

using namespace Translation;

class RegisterDriveWindow : public Window
{
public:
	typedef void (*RDWNDEVENTPROC)(RegisterDriveWindow* sender, TCHAR driveLetter, DWORD driveSerial, LPVOID parent, LPVOID tag);

	RegisterDriveWindow(LPVOID parent = 0);
	~RegisterDriveWindow();
	void Create(HINSTANCE hInstance);
	void Show();

	void DrivePluggedIn(RDWNDEVENTPROC ptr);
private:
	RDWNDEVENTPROC drivePluggedIn;
	LPVOID parent;

	static LRESULT CALLBACK WndProc(LPVOID sender, HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

};

#endif
